; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
; RUN: llc < %s -mtriple=x86_64-unknown-linux-gnu | FileCheck %s

define void @PR46315() {
; CHECK-LABEL: PR46315:
; CHECK:       # %bb.0:
; CHECK-NEXT:    xorl %edi, %edi
; CHECK-NEXT:    xorl %esi, %esi
; CHECK-NEXT:    movl $2, %edx
; CHECK-NEXT:    movl $3, %ecx
; CHECK-NEXT:    movl $1, %r8d
; CHECK-NEXT:    jmp h@PLT # TAILCALL
  tail call void @h(i32 0, i32 0, i32 2, i32 3, i32 1)
  ret void
}

declare void @h(i32, i32, i32, i32, i32)
